/**
 * 头部组件
 * Created by yuzhou on 16/9/12.
 */

define([
    'vue','debug', 'text!tpl/mainHeader.html',
    'components/taskMenu',
    'components/userMenu'
], function(Vue, Debug, mainHeaderHtml, TaskMenu, UserMenu) {

    var debug = Debug('App:Main:Header')

    return Vue.extend({
        template: mainHeaderHtml,
        components: {
            'task-menu': TaskMenu,
            'user-menu': UserMenu
        },
        ready: function(){
            debug('Main Header component is ready')
        }
    })
})